<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心--商家注册</title>
</head>

<body>
<a href="{U('Index/index')}">返回</a>
<form action="{U('UserCenter/shop')}" method="post" name="fromShop" onsubmit="return shop(this)">
	楼层:<input type="text" name="floorid" value="{$list.floorid}" placeholder="请输入楼层"><br>
	店铺:<input type="text" name="name" value="{$list.name}" placeholder="请输入店铺名称"><br>
	地址:<input type="text" name="address" value="{$list.address}" placeholder="请输入店铺地址"><br>
	电话:<input type="text" name="tel" value="{$list.tel}" placeholder="请输入电话或手机号"><br>
	概要:<input type="text" name="summary" value="{$list.summary}" placeholder=""><br>
	主营:<textarea name="content" value="" placeholder="请输入主营或内容">{$list.content}</textarea><br>
	营业时间开始:<input type="text" name="starttime" value="{$list.starttime}" placeholder="营业时间开始"><br>
	营业时间结束:<input type="text" name="endtime" value="{$list.endtime}" placeholder="营业时间结束"><br>
	编号:<input type="text" name="shopnum" value="{$list.shopnum}" placeholder="请输入店铺编号"><br>
	{if $list.id}
	<input type="hidden" name="id" value="{$list.id}">
	<input type="submit" name="act_shop" value="修改">
	{else}
	<input type="submit" name="act_shop" value="商家注册">
	{/if}
</form>
<script type="text/javascript">
	function shop(form)
	{
		if(form.floorid.value == "")
		{
			alert("请输入楼层");
			form.floorid.select();
			return false;
		}
		if(form.name.value == "")
		{
			alert("请输入店铺名称");
			form.name.select();
			return false;
		}
		if(form.address.value == "")
		{
			alert("请输入店铺地址");
			form.address.select();
			return false;
		}
	}
</script>
</body>
</html>